﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kators.BusinessObjects;

namespace Kators
{
    public static class Configuration
    {
        private static Guid selectedPlayerId;
        private static Guid selectedTeamId; 

        private static string sourceFilePath; 


        //Database connection
        public static string DbConnection = @"server=.\SQLEXPRESS; integrated security = true ; database = Kators;" ;

        //File paths
        private static string BasePath = @"C:\Works\Trials\Kators\Images";
        private static string TeamLogoPath = @"\TeamLogos";
        private static string PlayerPicPath = @"\Players";


        //Status
        public static Guid ActiveStatusId = new Guid("796FEA9C-4CD8-472E-8638-AFD5357AA3D6");
        public static Guid InActiveStatusId = new Guid("1E0B5BF0-9AA8-4FEC-9F4A-4A9542273DC3");
        public static Guid DeletedStatusId = new Guid("C9F94DA1-FE68-47D4-924E-01BC6AFD5C55");
        public static Guid PendingStatusId = new Guid("9432B10B-BE48-4B30-8BD2-8BDF992A4CBB");
             

        //Get image file path
        public static string GetTeamLogoPath()
        {
            return BasePath + TeamLogoPath;
        }

        public static string GetPlayerPicPath()
        {
            return BasePath + PlayerPicPath; 
        }

        public static string GetNoTeamLogoPath()
        {
          return GetTeamLogoPath() + @"\_null.jpg";
        }

        public static string GetNoPlayerPicturePath()
        {
            return GetPlayerPicPath() + @"\_null.jpg";
        }


       
        public static Guid SelectedPlayerId
        {
            get { return selectedPlayerId; }
            set
            {
                selectedPlayerId = value;
            }
        }

        public static Guid SelectedTeamId
        {
            get { return selectedTeamId; }
            set
            {
                selectedTeamId = value;
            }
        }

        public static string SourceFilePath
        {
            get { return sourceFilePath; }
            set
            {
                sourceFilePath = value;
            }
        }

    }
}
